import '../utils/tools.dart';

class DetailArguments {
  int id = 0;
  final String? heroTag;
  final String? heroTagTitle;
  Object? temp;

  DetailArguments({
    required this.id,
    this.heroTag,
    this.heroTagTitle,
    this.temp,
  });

  DetailArguments.fromObject(Map<String, dynamic>? object)
      : id = Tools.parseInt(object?['id']),
        heroTag = object?['hero_tag'],
        heroTagTitle = object?['hero_tag_title'],
        temp = object?['data'];
}
